package com.tsmti.core.common.dao.jdbc;

import org.hibernate.dialect.Oracle10gDialect;
import org.hibernate.type.StandardBasicTypes;

import java.sql.Types;

/**
 * @Package：com.tsmti.core.common.dao.jdbc
 * @Class：MyOracleDialect
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/9/14 22:44
 * @Company:
 * @Version：
 * @Modified By:
 */
public class OracleDialect extends Oracle10gDialect {
    public OracleDialect() {
        registerHibernateType(Types.CHAR, StandardBasicTypes.STRING.getName());
        registerHibernateType(Types.NVARCHAR, StandardBasicTypes.STRING.getName());
        registerHibernateType(Types.LONGNVARCHAR, StandardBasicTypes.STRING.getName());
        registerHibernateType(Types.DECIMAL, StandardBasicTypes.DOUBLE.getName());
        registerHibernateType(Types.NCLOB, StandardBasicTypes.STRING.getName());
    }
}